﻿using System.ComponentModel.DataAnnotations;

namespace JNPF.Basics.Models.Extend.Model
{
    public class GoodsModel
    {
        /// <summary>
        /// 商品id
        /// </summary>
        [Required(ErrorMessage = "商品id不能为空")]
        public string goodsId { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        [Required(ErrorMessage = "商品名称不能为空")]
        public string goodsName { get; set; }
        /// <summary>
        /// 规格型号
        /// </summary>
        [Required(ErrorMessage = "规格型号不能为空")]
        public string specifications { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        [Required(ErrorMessage = "单位不能为空")]
        public string unit { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        [Required(ErrorMessage = "数量不能为空")]
        public decimal? qty { get; set; }
        /// <summary>
        /// 单价
        /// </summary>
        [Required(ErrorMessage = "单价不能为空")]
        public decimal? price { get; set; }
        /// <summary>
        /// 金额
        /// </summary>
        [Required(ErrorMessage = "金额不能为空")]
        public decimal? amount { get; set; }
        /// <summary>
        /// 折扣
        /// </summary>
        [Required(ErrorMessage = "折扣不能为空")]
        public decimal? discount { get; set; }
        /// <summary>
        /// 税率
        /// </summary>
        [Required(ErrorMessage = "税率不能为空")]
        public decimal? cess { get; set; }
        /// <summary>
        /// 实际单价
        /// </summary>
        [Required(ErrorMessage = "实际单价不能为空")]
        public decimal? actualPrice { get; set; }
        /// <summary>
        /// 实际金额
        /// </summary>
        [Required(ErrorMessage = "实际金额不能为空")]
        public decimal? actualAmount { get; set; }
        public string description { get; set; }
        public string goodsCode { get; set; }
        public string id { get; set; }
        public string remove { get; set; }
        public long? sortCode { get; set; }
    }
}
